from ..extensions import db
from datetime import datetime

class CommandRecord(db.Model):
    #命令执行记录
    __tablename__ = "command_record"
    id            = db.Column(db.Integer,primary_key=True)
    command       = db.Column(db.String(50))
    note          = db.Column(db.Text,default='None')
    result        = db.Column(db.Text,default='None')
    timestamp     = db.Column(db.DateTime,default=datetime.utcnow())